package com.fcat.common.user.entity;

import javax.persistence.*;

@Table(name = "resource_server_resource")
public class ResourceServerResource {
    @Id
    @Column(name = "ID")
    private String id;

    @Column(name = "NAME")
    private String name;

    @Column(name = "TYPE")
    private String type;

    @Column(name = "ICON_URI")
    private String iconUri;

    @Column(name = "OWNER")
    private String owner;

    @Column(name = "RESOURCE_SERVER_ID")
    private String resourceServerId;

    @Column(name = "OWNER_MANAGED_ACCESS")
    private Boolean ownerManagedAccess;

    @Column(name = "DISPLAY_NAME")
    private String displayName;

    @Column(name = "PARENT_RESOURCE")
    private String parentResource;

    @Column(name = "PERMISSION")
    private String permission;

    @Column(name = "SORT")
    private Integer sort;

    @Column(name = "ENABLED")
    private Boolean enabled;

    /**
     * @return ID
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return NAME
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return TYPE
     */
    public String getType() {
        return type;
    }

    /**
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * @return ICON_URI
     */
    public String getIconUri() {
        return iconUri;
    }

    /**
     * @param iconUri
     */
    public void setIconUri(String iconUri) {
        this.iconUri = iconUri;
    }

    /**
     * @return OWNER
     */
    public String getOwner() {
        return owner;
    }

    /**
     * @param owner
     */
    public void setOwner(String owner) {
        this.owner = owner;
    }

    /**
     * @return RESOURCE_SERVER_ID
     */
    public String getResourceServerId() {
        return resourceServerId;
    }

    /**
     * @param resourceServerId
     */
    public void setResourceServerId(String resourceServerId) {
        this.resourceServerId = resourceServerId;
    }

    /**
     * @return OWNER_MANAGED_ACCESS
     */
    public Boolean getOwnerManagedAccess() {
        return ownerManagedAccess;
    }

    /**
     * @param ownerManagedAccess
     */
    public void setOwnerManagedAccess(Boolean ownerManagedAccess) {
        this.ownerManagedAccess = ownerManagedAccess;
    }

    /**
     * @return DISPLAY_NAME
     */
    public String getDisplayName() {
        return displayName;
    }

    /**
     * @param displayName
     */
    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    /**
     * @return PARENT_RESOURCE
     */
    public String getParentResource() {
        return parentResource;
    }

    /**
     * @param parentResource
     */
    public void setParentResource(String parentResource) {
        this.parentResource = parentResource;
    }

    /**
     * @return PERMISSION
     */
    public String getPermission() {
        return permission;
    }

    /**
     * @param permission
     */
    public void setPermission(String permission) {
        this.permission = permission;
    }

    /**
     * @return SORT
     */
    public Integer getSort() {
        return sort;
    }

    /**
     * @param sort
     */
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    /**
     * @return ENABLED
     */
    public Boolean getEnabled() {
        return enabled;
    }

    /**
     * @param enabled
     */
    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }
}